package com.learn.redis.lock;

/**
 * @author PC
 * 锁类型枚举类
 */
public enum LockType {

    FAIR("FAIR", "fairLock"),
    REENTRANT("REENTRANT", "reentrantLock"),
    READ("READ", "readLock"),
    WRITE("WRITE", "writeLock");
    /**
     * 锁类型
     */
    private String lockType;
    /**
     * 类型说明
     */
    private String typeDesc;

    LockType(String lockType, String typeDesc) {
        this.lockType = lockType;
        this.typeDesc = typeDesc;
    }

    public String getLockType() {
        return lockType;
    }

    public void setLockType(String lockType) {
        this.lockType = lockType;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }
}
